﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZSZ.DTO;
using ZSZ.Model;

namespace ZSZ.IService
{
    public partial interface IAdminUserPermissionService : IBaseService<AdminUserPermission>
    {
        AdminUserPermissionDTO[] GetHasPermissions(long adminId);

        AdminUserPermission GetSingle(long adminId, long permissionId);

        AdminUserPermissionDTO GetAdminUserPermission(long adminId, string controllerName, string actionName, string httpMethod);

        void Add(long adminId, long permissionId, bool value);
        void Update(long adminId, long permissionId, bool value);
        void Deleted(long adminId, long permissionId);
    }
}
